home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 19
/
Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso
/
Aminet
/
game
/
patch
/
sb2hd.lha
/
SpeedBall2
/
Install_SpeedBall2CD32
< prev
next >
Wrap
Text File
|
1997-02-13
|
2KB
|
72 lines
; $VER: SpeedBall II CD32 HD Install-Script V1.0 by Jean-Francois Fabre
; Adapted from an installer from Sentinel
(set GameDir "SpeedBallII_CD32")
;try to figure out a place where the user usually installs his games
(if (exists "Games:" (noreq) )
(set @default-dest "Games:")
(if (exists "SYS:Games" (noreq) )
(set @default-dest "SYS:Games")
(if (exists "Work:Games" (noreq) )
(set @default-dest "Work:Games")
(if (exists "JEUX:" (noreq) )
(set @default-dest "JEUX:")
(set @default-dest "SYS:")
)
)
)
)
;ask the user to select a directory to install the game into
(set default-dest
(tackon (askdir (prompt "Where would you like " @app-name " installed?\n"
"A drawer called " GameDir " will be created.")
(help @askdir-help)
(default @default-dest)
)
GameDir
)
)
(set @default-dest default-dest)
;create the selected directory
(makedir @default-dest
(infos)
)
(message "\n\n\n\n\n\nPlease insert SpeedBall2 CD in the CD-ROM drive")
;copy the executable so we can locate it
(copyfiles (source "patchsb2")
(dest "ram:")
)
(copyfiles (source "SpeedBallII:")
(dest @default-dest)
(all)
)
;copy all extra files to this directory
(copyfiles (source "SpeedBall2CD32.icon")
(dest @default-dest)
(newname "SpeedBall2CD32.info")
)
(copyfiles (source "SpeedBall2CD32")
(dest @default-dest)
)
; patch the executable (to remove the protection)
(if
(= 0 (run ("ram:patchsb2 %s/game" @default-dest)))
("")
(abort "file \"patchsb2\" not found !")
)